package com.corn.turtorial.consumer.controller;

import com.corn.turtorial.consumer.api.ProviderInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2021/5/14 11:31
 */

@RestController
public class ConsumerController {

    @Autowired
    private ProviderInterface providerInterface;

    @GetMapping("/consumer")
    public String consumer() {
        return providerInterface.getProvider();
    }
}
